import { findEnableDictItemsbyCode } from '@/api/api'
export const comMethods = {
  data () {
    return {
      imgPrefix: '',
      informationList: [],
    }

  },
  mounted () {
    this.getDist()
    // this.getInformationList()
  },

  methods: {
    async getDist () {
      let res = await findEnableDictItemsbyCode({ code: 'static_server' })
      this.imgPrefix = res.result[0].value
    },
    async getInformationList () {
      let { result } = await informationPage({ pageSize: 99999 })
      this.informationList = result.records
    },
  },
}